import axios from 'axios';

// 列表
function getList(params) {
  return axios({
    url: `/system/user/list`,
    method: 'get',
    params,
  });
}

// 创建
function create(params) {
  return axios({
    url: `/system/user/create`,
    method: 'post',
    data: params,
  });
}

// 更新
function update(params) {
  return axios({
    url: `/system/user/update`,
    method: 'post',
    data: params,
  });
}

// 删除
function del(userID) {
  return axios({
    url: `/system/user/delete/${userID}`,
    method: 'delete',
  });
}


export default {
  getList,
  create,
  update,
  del
}
